package com.team7.home.feign;


import com.team7.common.vo.CommonResult;
import com.team7.common.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(value = "video-core")
public interface CoreFeign {
    /**
     * 查询所有的课程信息
     * @param page
     * @param limit
     * @param courseVo
     * @param id
     * @return
     */
    @PostMapping("/core/courseList/findCourseList/{page}/{limit}")
    public CommonResult findCourseByPage(@PathVariable("page") Integer page,
                                         @PathVariable("limit") Integer limit,
                                         @RequestBody CourseVo courseVo,
                                         @RequestParam(value = "id",required = false) String id);

    /**
     * 更改课程的状态
     * @param id
     * @return
     */
    @GetMapping("/core/courseList/updateAdd")
    public Integer updateAdd(@RequestParam(value = "id",required = false) String id);


    /**
     * 获取所有的菜单
     * @return
     */
    @PostMapping("/core/course/getAllMenu")
    public CommonResult getAllMenu();
}
